import {createElement} from "react";
import {Input, Select, DatePicker} from "antd";
import { EnumLoginStatusList } from "../constants";

const { RangePicker } = DatePicker;

export const filterItems = [
    {
        title: "登录ip",
        name: "ipaddr",
        gridSpan: 2,
        component: createElement(Input),
    },
    {
        title: "登录名",
        name: "userName",
        gridSpan: 2,
        component: createElement(Input),
    },
    {
        title: "状态",
        name: "status",
        gridSpan: 1,
        component: createElement(Select, {style:{width: "100%"}, options: EnumLoginStatusList, allowClear: true})
    },
    {
      title: "时间",
      name: "dateRange",
      gridSpan: 2,
      component: createElement(RangePicker, {allowClear: true}),
  },
];

